package org.dreamwork.drawing.framework;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-8-3
 * Time: 15:23:02
 */
public interface IGraph extends Serializable {
    void add (IVertex vertex);
    void add (IVertex ... vertexes);
    void add (List<IVertex> vertexes);
    void add (IEdge edge);
    void add (IEdge... edges);
    void add (Collection<IEdge> edges);
    void remove (IVertex vertex);
    void remove (IVertex... vertexes);
    void remove (List<IVertex> vertexes);
    void remove (IEdge edge);
    void remove (IEdge... edges);
    void remove (Collection<IEdge> edges);
    List<IVertex> getVertexes ();
    Collection<IEdge> getEdges ();
}